]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tools/toolbox: Set up first toolbox as default
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Sep 2023 12:33:24 +0000 (14:33 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 1 Dec 2023 15:58:21 +0000 (15:58 +0000)
Setting up more than one gnome-shell toolbox is uncommon, and users
shouldn't have to specify --set-default for other tools to pick the
right default.

It would be possible to detect the number of containers that were
created from the shell toolbox image, but the far easier option is
to just set up the first container as default.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2935>

tools/toolbox/create-toolbox.sh

index 1b2ab9bbd114863921f013e882e304493da30e4b..ba240c537ceba758c81ce4bf6d8d78c8038c722d 100755 (executable)
@@ -104,6 +104,9 @@ unset TEMP
 NAME=$DEFAULT_NAME
 LOCALES=()
 
+# set up first toolbox as default
+[ ! -f $CONFIG_FILE ] && SET_DEFAULT=1
+
 while true; do
   case "$1" in
     -n|--name)